package instructions;
import core.Memory;
import core.Process;
import operands.Modifier;
import operands.Operand;


public class DatInstruction extends Instruction 
{
	public DatInstruction(Memory memory, Modifier m, Operand a, Operand b) 
	{
		super(memory, m, a, b);
	}

	@Override
	protected void executeInstruction(Process process) 
	{
		process.kill();
	}
	
	@Override
	public String toString()
	{
		String result = "DAT";
		result += super.toString();
		return result;
	}

	@Override
	public Instruction copy() 
	{
		return new DatInstruction(memory, m, a.copy(), b.copy());
	}
}
